package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.community.domain.relationship.CommunityUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 社区评论对象 community_comments
 *
 * @author ruoyi
 * @date 2024-07-21
 */
public class CommunityComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private Long commentsId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentsContent;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentsCreateTime;

    /** 评论用户ID */
    @Excel(name = "评论用户ID")
    private Long commentsUserId;

    /** 所属帖子ID */
    @Excel(name = "所属帖子ID")
    private Long commentsPostId;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long commentsUp;

    /** 父级评论 */
    @Excel(name = "父级评论")
    private Long commentsParentsId;

    /** 展示：0不展示，1展示 */
    @Excel(name = "展示：0不展示，1展示")
    private Long commentsInputShow;

    /**用户信息*/
    private CommunityUser communityUserNameDD;

    public CommunityUser getCommunityUserNameDD() {
        return communityUserNameDD;
    }

    public void setCommunityUserNameDD(CommunityUser communityUserNameDD) {
        this.communityUserNameDD = communityUserNameDD;
    }

    public void setCommentsId(Long commentsId)
    {
        this.commentsId = commentsId;
    }

    public Long getCommentsId()
    {
        return commentsId;
    }
    public void setCommentsContent(String commentsContent)
    {
        this.commentsContent = commentsContent;
    }

    public String getCommentsContent()
    {
        return commentsContent;
    }
    public void setCommentsCreateTime(Date commentsCreateTime)
    {
        this.commentsCreateTime = commentsCreateTime;
    }

    public Date getCommentsCreateTime()
    {
        return commentsCreateTime;
    }
    public void setCommentsUserId(Long commentsUserId)
    {
        this.commentsUserId = commentsUserId;
    }

    public Long getCommentsUserId()
    {
        return commentsUserId;
    }
    public void setCommentsPostId(Long commentsPostId)
    {
        this.commentsPostId = commentsPostId;
    }

    public Long getCommentsPostId()
    {
        return commentsPostId;
    }
    public void setCommentsUp(Long commentsUp)
    {
        this.commentsUp = commentsUp;
    }

    public Long getCommentsUp()
    {
        return commentsUp;
    }
    public void setCommentsParentsId(Long commentsParentsId)
    {
        this.commentsParentsId = commentsParentsId;
    }

    public Long getCommentsParentsId()
    {
        return commentsParentsId;
    }
    public void setCommentsInputShow(Long commentsInputShow)
    {
        this.commentsInputShow = commentsInputShow;
    }

    public Long getCommentsInputShow()
    {
        return commentsInputShow;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentsId", getCommentsId())
            .append("commentsContent", getCommentsContent())
            .append("commentsCreateTime", getCommentsCreateTime())
            .append("commentsUserId", getCommentsUserId())
            .append("commentsPostId", getCommentsPostId())
            .append("commentsUp", getCommentsUp())
            .append("commentsParentsId", getCommentsParentsId())
            .append("commentsInputShow", getCommentsInputShow())
                .append("communityUserNameDD",getCommunityUserNameDD())
            .toString();
    }
}
